/**
 * @filename:Material Dec 8, 2023
 * Copyright(c) 2022 Wonder Co. Ltd. 
 * All right reserved. 
 */
package com.wonder.app.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;

/**   
 * @Description:TODO(物料管理实体类)
 * 
 * @author: Wonder
 * 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_material")
@ApiModel(value="t_material对象", description="物料管理表")
public class Material extends Model<Material> {

	private static final long serialVersionUID = 1702027239457108L;
	
	@TableId(value ="id", type = IdType.AUTO)
	@ApiModelProperty(name = "id" , value = "主键")
    private Long id;
    
    @TableField(value = "FMATERIALID") 	
	@ApiModelProperty(name = "FMATERIALID" , value = "物料内码")
    private String FMATERIALID;
    
    @TableField(value = "FNUMBER") 	
	@ApiModelProperty(name = "FNUMBER" , value = "物料编码")
    private String FNUMBER;
    
    @TableField(value = "FOLDNUMBER") 	
	@ApiModelProperty(name = "FOLDNUMBER" , value = "旧编码")
    private String FOLDNUMBER;
    
    @TableField(value = "FSPECIFICATION") 	
	@ApiModelProperty(name = "FSPECIFICATION" , value = "规格")
    private String FSPECIFICATION;
    
    @TableField(value = "FMATERIALGROUP") 	
	@ApiModelProperty(name = "FMATERIALGROUP" , value = "物料分组")
    private Long FMATERIALGROUP;
    
    @TableField(value = "FCREATEORG") 	
	@ApiModelProperty(name = "FCREATEORG" , value = "创建组织")
    private String FCREATEORG;
    
    @TableField(value = "FUSEORG") 	
	@ApiModelProperty(name = "FUSEORG" , value = "使用组织")
    private String FUSEORG;
    
    @TableField(value = "FCREATEDATE") 	
	@ApiModelProperty(name = "FCREATEDATE" , value = "创建日期")
    private Date FCREATEDATE;
    
    @TableField(value = "FMODIFIER") 	
	@ApiModelProperty(name = "FMODIFIER" , value = "修改人")
    private String FMODIFIER;
    
    @TableField(value = "FMODIFYDATE") 	
	@ApiModelProperty(name = "FMODIFYDATE" , value = "修改日期")
    private Date FMODIFYDATE;
    
    @TableField(value = "FSTATUS") 	
	@ApiModelProperty(name = "FSTATUS" , value = "数据状态")
    private String FSTATUS;
    
    @TableField(value = "FFORBIDSTATUS") 	
	@ApiModelProperty(name = "FFORBIDSTATUS" , value = "禁用状态")
    private Boolean FFORBIDSTATUS;
    
    @TableField(value = "FAPPROVER") 	
	@ApiModelProperty(name = "FAPPROVER" , value = "审核人")
    private String FAPPROVER;
    
    @TableField(value = "FAPPROVEDATE") 	
	@ApiModelProperty(name = "FAPPROVEDATE" , value = "审核日期")
    private Date FAPPROVEDATE;
    

    
    @TableField(value = "FCountType") 	
	@ApiModelProperty(name = "FCountType" , value = "0净重计件1毛重计件")
    private Integer FCountType;
    
    @TableField(value = "FQualityInstock") 	
	@ApiModelProperty(name = "FQualityInstock" , value = "0质检入库1未质检入库")
    private Integer FQualityInstock;
    
    @TableField(value = "FCoefficient") 	
	@ApiModelProperty(name = "FCoefficient" , value = "工资分配系数")
    private Double FCoefficient;
    
    @TableField(value = "FCREATEUSERNAME") 	
	@ApiModelProperty(name = "FCREATEUSERNAME" , value = "创建人")
    private String FCREATEUSERNAME;
    
    @TableField(value = "FName") 	
	@ApiModelProperty(name = "FName" , value = "物料名称")
    private String FName;

    @TableField(value = "FIsFlot")
    @ApiModelProperty(name = "FIsFlot" , value = "是否启用批次")
    private Boolean FIsFlot;

    @TableField(value = "FIsProduce")
    @ApiModelProperty(name = "FIsProduce" , value = "是否启用保质期")
    private Boolean FIsProduce;


    @TableField(value = "expperiod")
    @ApiModelProperty(name = "expperiod" , value = "保质期")
    private Integer expperiod;

    @TableField(value = "expUnit")
    @ApiModelProperty(name = "expUnit" , value = "保质期单位")
    private String expUnit;

    @TableField(value = "unit")
    @ApiModelProperty(name = "unit" , value = "基本单位")
    private String unit;

    @TableField(value = "price")
    @ApiModelProperty(name = "price" , value = "产品计件单价")
    private Double price;

    @TableField(value = "stockNo")
    @ApiModelProperty(name = "stockNo" , value = "仓库编码")
    private String stockNo;

    @TableField(value = "stockName")
    @ApiModelProperty(name = "stockName" , value = "仓库名称")
    private String stockName;
	@Override
    public Serializable pkVal() {
        return this.id;
    }
   
}
